<?php

namespace App\Http\Controllers\Front;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Auth;

class WithdrawalController extends Controller
{
    /**
     * 余额.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $shop = Auth::user()->shop;

        return view('front.member.withdrawal.index', compact('shop'));
    }

    /**
     * 提现
     */
    public function cash()
    {
        return view('front.member.withdrawal.cash');
    }

    /**
     * 历史记录
     */
    public function history()
    {
        $shop = Auth::user()->shop;
        $withdraw = $shop->withdraw;
        
        return view('front.member.withdrawal.history', compact('withdraw'));
    }
}
